import React from 'react';
import { Result, Row, Col, Button } from 'antd';
import { IconFont } from '../../../../components/IconFont';

export default function(props) {
  const { count } = props
  return (
    <>
      <div className='event-download-content'>
        <Result
          icon={<IconFont type='iconsuccess-' style={{ fontSize: '42px', fontWeight: 'normal' }} />}
          title='下载成功'
          subTitle={`本次共下载${count}个文件`}
        />
      </div>
      <div className='event-download-ft'>
        <Row type='flex' justify='center'>
          <Col span={12} style={{ textAlign: 'center' }}>
            <Button type='primary' onClick={props.goToLast.bind(this)}>
              确定
            </Button>
          </Col>
        </Row>
      </div>
    </>
  );
}
